package com.foreverwin.jzymes.production.fqc.service.impl;

import java.util.List;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;
import com.foreverwin.jzymes.production.fqc.mapper.FqcCheckMapper;
import com.foreverwin.jzymes.production.fqc.domain.FqcCheck;
import com.foreverwin.jzymes.production.fqc.service.IFqcCheckService;

/**
 * FQC检验数据 服务层实现
 * 
 * @author ervin
 * @date 2019-04-08
 */
@Service
public class FqcCheckServiceImpl implements IFqcCheckService
{
	@Autowired
	private FqcCheckMapper fqcCheckMapper;

	/**
     * 查询FQC检验数据信息
     * 
     * @param handle FQC检验数据ID
     * @return FQC检验数据信息
     */
    @Override
	public FqcCheck selectFqcCheckById(String handle)
	{
	    return fqcCheckMapper.selectFqcCheckById(handle);
	}
	
	/**
     * 查询FQC检验数据列表
     * 
     * @param fqcCheck FQC检验数据信息
     * @return FQC检验数据集合
     */
	@Override
	public List<FqcCheck> selectFqcCheckList(FqcCheck fqcCheck)
	{
	    return fqcCheckMapper.selectFqcCheckList(fqcCheck);
	}
	
    /**
     * 新增FQC检验数据
     * 
     * @param fqcCheck FQC检验数据信息
     * @return 结果
     */
	@Override
	public int insertFqcCheck(FqcCheck fqcCheck)
	{
	    return fqcCheckMapper.insertFqcCheck(fqcCheck);
	}
	
	/**
     * 修改FQC检验数据
     * 
     * @param fqcCheck FQC检验数据信息
     * @return 结果
     */
	@Override
	public int updateFqcCheck(FqcCheck fqcCheck)
	{
	    return fqcCheckMapper.updateFqcCheck(fqcCheck);
	}

	/**
     * 删除FQC检验数据对象
     * 
     * @param ids 需要删除的数据ID
     * @return 结果
     */
	@Override
	public int deleteFqcCheckByIds(String ids)
	{
		return fqcCheckMapper.deleteFqcCheckByIds(ids.split(","));
	}
	
}
